var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({ name: String,password:String,age:Number,phone:Number,email:String,address:String,professional:String,vip:Boolean,hobby:String,date:{type: Date,default: Date.now}});
schema.plugin(mongoosePaginate);

module.exports = mongoose.model('User',  schema);  // Model.paginate()